window.__require = function e(t, n, r) {
  function s(o, u) {
    if (!n[o]) {
      if (!t[o]) {
        var b = o.split("/");
        b = b[b.length - 1];
        if (!t[b]) {
          var a = "function" == typeof __require && __require;
          if (!u && a) return a(b, !0);
          if (i) return i(b, !0);
          throw new Error("Cannot find module '" + o + "'");
        }
        o = b;
      }
      var f = n[o] = {
        exports: {}
      };
      t[o][0].call(f.exports, function(e) {
        var n = t[o][1][e];
        return s(n || e);
      }, f, f.exports, e, t, n, r);
    }
    return n[o].exports;
  }
  var i = "function" == typeof __require && __require;
  for (var o = 0; o < r.length; o++) s(r[o]);
  return s;
}({
  AndroidUtil: [ function(require, module, exports) {
    "use strict";
    cc._RF.push(module, "6f2fenaKW1LfK/TuADA5WQR", "AndroidUtil");
    "use strict";
    Object.defineProperty(exports, "__esModule", {
      value: true
    });
    exports.AndroidUtil = void 0;
    function _classCallCheck(instance, Constructor) {
      if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
    }
    function _defineProperties(target, props) {
      for (var i = 0; i < props.length; i++) {
        var descriptor = props[i];
        descriptor.enumerable = descriptor.enumerable || false;
        descriptor.configurable = true;
        "value" in descriptor && (descriptor.writable = true);
        Object.defineProperty(target, descriptor.key, descriptor);
      }
    }
    function _createClass(Constructor, protoProps, staticProps) {
      protoProps && _defineProperties(Constructor.prototype, protoProps);
      staticProps && _defineProperties(Constructor, staticProps);
      return Constructor;
    }
    var AndroidUtil = function() {
      function AndroidUtil() {
        _classCallCheck(this, AndroidUtil);
      }
      _createClass(AndroidUtil, null, [ {
        key: "postMessageToAndroid",
        value: function postMessageToAndroid(data, className) {
          var str = JSON.stringify(data);
          console.log("[MainScene] postMessageToAndroid:", str);
          var result = jsb.reflection.callStaticMethod(className, "revJsMessage", "(Ljava/lang/String;)Ljava/lang/String;", str);
          console.log("[MainScene] postMessageToAndroid: result: ", result);
        }
      }, {
        key: "revAndroidMsg",
        value: function revAndroidMsg(data) {
          var json = JSON.parse(data);
          var cmd = json.cmd;
          switch (cmd) {
           case getUserCmd:
            console.log("[MainScene] revAndroidMsg:", cmd, json.msg);
          }
        }
      } ]);
      return AndroidUtil;
    }();
    exports.AndroidUtil = AndroidUtil;
    AndroidUtil.getUserCmd = 1;
    cc._RF.pop();
  }, {} ],
  Bus: [ function(require, module, exports) {
    "use strict";
    cc._RF.push(module, "068f1gIVpJMDKFVG7coQEYP", "Bus");
    "use strict";
    Object.defineProperty(exports, "__esModule", {
      value: true
    });
    exports.Bus = void 0;
    function _classCallCheck(instance, Constructor) {
      if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
    }
    function _defineProperties(target, props) {
      for (var i = 0; i < props.length; i++) {
        var descriptor = props[i];
        descriptor.enumerable = descriptor.enumerable || false;
        descriptor.configurable = true;
        "value" in descriptor && (descriptor.writable = true);
        Object.defineProperty(target, descriptor.key, descriptor);
      }
    }
    function _createClass(Constructor, protoProps, staticProps) {
      protoProps && _defineProperties(Constructor.prototype, protoProps);
      staticProps && _defineProperties(Constructor, staticProps);
      return Constructor;
    }
    var Bus = function() {
      function Bus() {
        _classCallCheck(this, Bus);
      }
      _createClass(Bus, null, [ {
        key: "putCurUser",
        value: function putCurUser(window) {
          if (window.androidObject && window.androidObject.getCurUser) {
            cc.log("Bus.curUser getCurUser have ");
            var userStr = window.androidObject.getCurUser();
            Bus.curUser = JSON.parse(userStr);
            cc.log("Bus.curUser ", Bus.curUser);
          }
        }
      } ]);
      return Bus;
    }();
    exports.Bus = Bus;
    Bus.curUser = null;
    cc._RF.pop();
  }, {} ],
  CmdDto: [ function(require, module, exports) {
    "use strict";
    cc._RF.push(module, "f0af4vyJHRMXo1gNre4Dz7V", "CmdDto");
    "use strict";
    var CmdDto = {
      createNew: function createNew() {
        var obj = {
          cmd: null,
          msg: null
        };
        return obj;
      }
    };
    module.exports = CmdDto;
    cc._RF.pop();
  }, {} ],
  Common: [ function(require, module, exports) {
    "use strict";
    cc._RF.push(module, "31e77A5LYBDvLBpjcGERfyc", "Common");
    "use strict";
    Object.defineProperty(exports, "__esModule", {
      value: true
    });
    exports.Common = void 0;
    function _classCallCheck(instance, Constructor) {
      if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
    }
    var Common = function Common() {
      _classCallCheck(this, Common);
    };
    exports.Common = Common;
    Common.port = 8889;
    Common.ip = "139.196.8.79";
    Common.baseUrl = "http://".concat(Common.ip, ":").concat(Common.port);
    cc._RF.pop();
  }, {} ],
  Game: [ function(require, module, exports) {
    "use strict";
    cc._RF.push(module, "08e0eA7C3VOS55EhGfIsZVw", "Game");
    "use strict";
    var _Bus = require("./Bus");
    var _Common = require("./Common");
    var _User = _interopRequireDefault(require("./entity/User"));
    var _HTTPUtil = require("./HTTPUtil");
    function _interopRequireDefault(obj) {
      return obj && obj.__esModule ? obj : {
        default: obj
      };
    }
    var http = require("./util/http");
    cc.Class({
      extends: cc.Component,
      properties: {
        rubishPrefab: {
          default: null,
          type: cc.Prefab
        },
        burstPrefab: {
          default: null,
          type: cc.Prefab
        },
        heartPrefab: {
          default: null,
          type: cc.Prefab
        },
        rubishAtlas: cc.SpriteAtlas,
        iconsAtlas: cc.SpriteAtlas,
        gameOverTesting: true,
        wxSubContextView: cc.Node,
        myAlert: cc.Prefab,
        restartbtn: cc.Node
      },
      onLoad: function onLoad() {
        cc.log("game.js onLoad");
        this.wxSubContextView.active = false;
        this.restartbtn.active = false;
        this.rate = 4e3;
        this.score = 0;
        this.playing = true;
        this.rubishX0 = 93.75;
        this.rubishY0 = 1200;
        this.rubishXInte = 187.5;
        this.rubishStack = new Array();
        this.scoreNode = cc.find("Canvas/BaseView/Score");
        this.scoreLabel = this.scoreNode.getComponent(cc.Label);
        this.Bins = cc.find("Canvas/BaseView/Bins").children;
        cc.log("\u5f00\u59cb\u6e38\u620f");
        this.gameUp();
        var then = this;
        document.addEventListener("visibilitychange", function(e) {
          if (!then.playing) return;
          e.hidden || document.hidden ? clearInterval(then.genarating) : then.genarating = setInterval(then.producer, then.rate);
        });
        cc.log("this.restartbtn.runActi");
        _Bus.Bus.putCurUser(window);
        this.createAlert(1, 1, JSON.stringify(_Bus.Bus.curUser));
      },
      gameUp: function gameUp() {
        for (var i = 0; i < this.rubishStack.length; i++) this.rubishStack[i] && this.rubishStack[i].node && this.rubishStack[i].node.destroy();
        this.rubishStack = [];
        this.playing = true;
        this.rate = 4e3;
        this.scoreLabel.string = "0";
        this.score = 0;
        this.hearts = [];
        this.initHearts();
        this.rubishesProducer();
      },
      gameOver: function gameOver() {
        if (this.gameOverTesting) return;
        this.playing = false;
        clearInterval(this.genarating);
        for (var i = 0; i < this.rubishStack.length; i++) this.rubishStack[i] && this.rubishStack[i].node && this.rubishStack[i].node.stopAllActions();
      },
      initHearts: function initHearts() {
        var heartCount = 3;
        for (var i = 0; i < heartCount; i++) {
          this.hearts[i] = cc.instantiate(this.heartPrefab);
          this.hearts[i].x = 75 * i + 250;
          this.hearts[i].y = 1275;
          this.node.addChild(this.hearts[i]);
        }
      },
      rubishesProducer: function rubishesProducer() {
        var then = this;
        var speed = 200;
        var preRate = 4e3;
        this.spawnARubish(speed);
        this.producer = function producer() {
          speed = 200 + 50 * then.getLevel();
          then.rate = 4e3 - 1e3 * then.getLevel();
          if (preRate > then.rate) {
            preRate = then.rate;
            clearInterval(then.genarating);
            then.movingText(function() {
              then.spawnARubish(speed);
              then.genarating = setInterval(then.producer, then.rate);
            });
          } else then.spawnARubish(speed);
        };
        this.genarating = setInterval(this.producer, this.rate);
      },
      spawnARubish: function spawnARubish(speed) {
        var rubishNode = cc.instantiate(this.rubishPrefab);
        var rubishSprite = rubishNode.children[0].getComponent(cc.Sprite);
        var Rubish = rubishNode.getComponent("Rubish");
        var touchStart;
        var touchEnd;
        var then = this;
        Rubish.id = Math.floor(10 * Math.random());
        Rubish.type = Math.floor(4 * Math.random());
        Rubish.channel = Math.floor(4 * Math.random());
        Rubish.speed = speed || 200;
        Rubish.node.x = this.rubishX0 + Rubish.channel * this.rubishXInte;
        Rubish.node.y = this.rubishY0;
        rubishNode.runAction(cc.moveBy(1200 / Rubish.speed, cc.v2(0, -1200)));
        Rubish.node.on(cc.Node.EventType.TOUCH_START, function(e) {
          touchStart = e.getLocation();
        });
        Rubish.node.on(cc.Node.EventType.TOUCH_CANCEL, function(e) {
          touchEnd = e.getLocation();
          var touchMove = touchEnd.x - touchStart.x;
          touchMove >= 421.875 ? Rubish.channel += 3 : touchMove >= 275.625 ? Rubish.channel += 2 : touchMove > 0 ? Rubish.channel++ : -touchMove >= 421.875 ? Rubish.channel -= 3 : -touchMove >= 275.625 ? Rubish.channel -= 2 : touchMove < 0 && Rubish.channel--;
          Rubish.channel > 3 ? Rubish.channel = 3 : Rubish.channel < 0 && (Rubish.channel = 0);
          Rubish.node.runAction(cc.moveBy(.2, cc.v2(then.Bins[Rubish.channel].x - Rubish.node.x, 0)).easing(cc.easeCubicActionOut()));
        });
        Rubish.node.on(cc.Node.EventType.TOUCH_END, function touchEndAction(e) {
          touchEnd = e.getLocation();
          if (touchEnd.x - touchStart.x > 0 && 3 != Rubish.channel) {
            Rubish.channel++;
            Rubish.node.runAction(cc.moveBy(.2, cc.v2(187.5, 0)).easing(cc.easeCubicActionOut()));
          } else if (touchEnd.x - touchStart.x < 0 && 0 != Rubish.channel) {
            Rubish.channel--;
            Rubish.node.runAction(cc.moveBy(.2, cc.v2(-187.5, 0)).easing(cc.easeCubicActionOut()));
          }
        });
        Rubish.update = function() {
          if (Rubish.node.position.y <= 175) {
            if (Rubish.type == Rubish.channel) {
              then.score++;
              then.scoreLabel.string = then.score.toString();
              var burstNode = cc.instantiate(then.burstPrefab);
              var burstAnim = burstNode.getComponent(cc.Animation);
              burstAnim.play("Burst");
              burstNode.x = Rubish.node.x;
              burstNode.y = Rubish.node.y;
              burstNode.scaleX = 1.5;
              burstNode.scaleY = 1.5;
              burstAnim.on("finished", function() {
                burstNode.destroy();
                burstNode = null;
              });
              then.node.addChild(burstNode);
              then.scoreNode.color = new cc.color(Math.floor(150 * Math.random()), Math.floor(150 * Math.random()), Math.floor(150 * Math.random()));
            } else {
              then.heart--;
              var wrongNode = new cc.Node();
              wrongNode.addComponent(cc.Sprite);
              wrongNode.getComponent(cc.Sprite).spriteFrame = then.iconsAtlas.getSpriteFrame("wrong");
              wrongNode.x = Rubish.node.x;
              wrongNode.y = Rubish.node.y;
              then.node.addChild(wrongNode);
              wrongNode.runAction(cc.sequence(cc.fadeOut(.5), cc.callFunc(function() {
                wrongNode.destroy();
              })));
              wrongNode.runAction(cc.scaleTo(.5, 1.2, 1.2));
              if (then.hearts.length <= 1) {
                then.gameOver();
                then.createAlert(Rubish.id, Rubish.type);
              }
              var heart = then.hearts.pop();
              heart && heart.destroy();
            }
            Rubish.node.destroy();
            Rubish = null;
            then.rubishStack.shift();
          }
        };
        rubishSprite.spriteFrame = this.rubishAtlas.getSpriteFrame(Rubish.type + "_" + Rubish.id);
        cc.find("Canvas/BaseView/Rubishes").addChild(rubishNode);
        this.rubishStack.push(Rubish);
      },
      movingText: function movingText(callBack) {
        var textNode = new cc.Node();
        textNode.addComponent(cc.Sprite);
        var textSprite = textNode.getComponent(cc.Sprite);
        textSprite.spriteFrame = this.iconsAtlas.getSpriteFrame("speedUp");
        textNode.x = 800;
        textNode.y = 1e3;
        textNode.scaleX = 1.5;
        textNode.scaleY = 1.5;
        textNode.runAction(cc.sequence(cc.moveBy(.5, cc.v2(-textNode.x / 2, 0)), cc.moveBy(1, cc.v2(0, 0)), cc.moveBy(.5, cc.v2(-550, 0)), cc.callFunc(callBack)));
        this.node.addChild(textNode);
      },
      getLevel: function getLevel() {
        return this.score < 10 ? 0 : this.score < 30 ? 1 : this.score < 70 ? 2 : 3;
      },
      showRanks: function showRanks() {
        if ("undefined" === typeof wx) return;
        if (this.wxSubContextView.active) {
          this.wxSubContextView.active = false;
          wx.getOpenDataContext().postMessage({
            message: "clear"
          });
        } else {
          this.wxSubContextView.active = true;
          var score = 0 === this.score ? -1 : this.score;
          wx.getOpenDataContext().postMessage({
            message: score
          });
        }
      },
      createAlert: function createAlert(id, type, tipStr) {
        var node = cc.instantiate(this.myAlert);
        var spritename = type.toString() + "_" + id.toString();
        this.node.addChild(node);
        var myAlert = node.getComponent("alert");
        myAlert.rubish_sprite.spriteFrame = this.rubishAtlas.getSpriteFrame(spritename);
        var typename = [ "\u5e72\u5783\u573e", "\u53ef\u56de\u6536\u7269", "\u6e7f\u5783\u573e", "\u6709\u5bb3\u5783\u573e" ];
        myAlert.mytip.string = tipStr || typename[type];
        this.myAlert.active = true;
      },
      showrestartbtn: function showrestartbtn() {
        this.restartbtn.active = true;
      },
      restartFunction: function restartFunction() {
        this.showRanks();
        this.restartbtn.active = false;
        this.gameUp();
      },
      returnIndex: function returnIndex() {
        this.showRanks();
        this.restartbtn.active = false;
        cc.director.loadScene("Index");
      }
    });
    cc._RF.pop();
  }, {
    "./Bus": "Bus",
    "./Common": "Common",
    "./HTTPUtil": "HTTPUtil",
    "./entity/User": "User",
    "./util/http": "http"
  } ],
  HTTPUtilTs: [ function(require, module, exports) {
    "use strict";
    cc._RF.push(module, "a6216FqbHhHN6jw5cYq40bJ", "HTTPUtilTs");
    Object.defineProperty(exports, "__esModule", {
      value: true
    });
    var HttpUtil = function() {
      function HttpUtil() {}
      HttpUtil.GET = function(url, params, callback) {
        void 0 === params && (params = {});
        var dataStr = "";
        Object.keys(params).forEach(function(key) {
          dataStr += key + "=" + encodeURIComponent(params[key]) + "&";
        });
        if ("" !== dataStr) {
          dataStr = dataStr.substr(0, dataStr.lastIndexOf("&"));
          url = url + "?" + dataStr;
        }
        var xhr = cc.loader.getXMLHttpRequest();
        xhr.open("GET", url, true);
        xhr.setRequestHeader("Content-Type", "text/plain;charset=UTF-8");
        xhr.onreadystatechange = function() {
          if (4 === xhr.readyState) {
            var response = xhr.responseText;
            if (xhr.status >= 200 && xhr.status < 300) {
              var httpStatus = xhr.statusText;
              callback(true, response);
            } else callback(false, response);
          }
        };
        xhr.timeout = this.TimeOut;
        xhr.send();
      };
      HttpUtil.POST = function(url, param, callback) {
        void 0 === param && (param = {});
        var xhr = cc.loader.getXMLHttpRequest();
        var dataStr = "";
        Object.keys(param).forEach(function(key) {
          dataStr += key + "=" + encodeURIComponent(param[key]) + "&";
        });
        "" !== dataStr && (dataStr = dataStr.substr(0, dataStr.lastIndexOf("&")));
        xhr.open("POST", url, true);
        xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
        xhr.onreadystatechange = function() {
          if (4 === xhr.readyState) {
            var response = xhr.responseText;
            if (xhr.status >= 200 && xhr.status < 300) {
              var httpStatus = xhr.statusText;
              callback(true, response);
            } else callback(false, response);
          }
        };
        xhr.send(dataStr);
      };
      HttpUtil.TimeOut = 200;
      return HttpUtil;
    }();
    exports.HttpUtil = HttpUtil;
    cc._RF.pop();
  }, {} ],
  HTTPUtil: [ function(require, module, exports) {
    "use strict";
    cc._RF.push(module, "b4c25wQoA9KoY1rTI5gZljx", "HTTPUtil");
    "use strict";
    Object.defineProperty(exports, "__esModule", {
      value: true
    });
    exports.HttpUtil = void 0;
    function _classCallCheck(instance, Constructor) {
      if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
    }
    function _defineProperties(target, props) {
      for (var i = 0; i < props.length; i++) {
        var descriptor = props[i];
        descriptor.enumerable = descriptor.enumerable || false;
        descriptor.configurable = true;
        "value" in descriptor && (descriptor.writable = true);
        Object.defineProperty(target, descriptor.key, descriptor);
      }
    }
    function _createClass(Constructor, protoProps, staticProps) {
      protoProps && _defineProperties(Constructor.prototype, protoProps);
      staticProps && _defineProperties(Constructor, staticProps);
      return Constructor;
    }
    var HttpUtil = function() {
      function HttpUtil() {
        _classCallCheck(this, HttpUtil);
      }
      _createClass(HttpUtil, null, [ {
        key: "GET",
        value: function GET(url, params, callback) {
          var dataStr = "";
          Object.keys(params).forEach(function(key) {
            dataStr += key + "=" + encodeURIComponent(params[key]) + "&";
          });
          if ("" !== dataStr) {
            dataStr = dataStr.substr(0, dataStr.lastIndexOf("&"));
            url = url + "?" + dataStr;
          }
          var xhr = cc.loader.getXMLHttpRequest();
          xhr.open("GET", url, true);
          xhr.setRequestHeader("Content-Type", "text/plain;charset=UTF-8");
          xhr.onreadystatechange = function() {
            if (4 === xhr.readyState) {
              var response = xhr.responseText;
              if (xhr.status >= 200 && xhr.status < 300) {
                var httpStatus = xhr.statusText;
                callback(true, response);
              } else callback(false, response);
            }
          };
          xhr.timeout = this.TimeOut;
          xhr.send();
        }
      }, {
        key: "POST",
        value: function POST(url, param, callback) {
          var xhr = cc.loader.getXMLHttpRequest();
          var dataStr = "";
          Object.keys(param).forEach(function(key) {
            dataStr += key + "=" + encodeURIComponent(param[key]) + "&";
          });
          "" !== dataStr && (dataStr = dataStr.substr(0, dataStr.lastIndexOf("&")));
          xhr.open("POST", url, true);
          xhr.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
          xhr.onreadystatechange = function() {
            if (4 === xhr.readyState) {
              var response = xhr.responseText;
              if (xhr.status >= 200 && xhr.status < 300) {
                var httpStatus = xhr.statusText;
                callback(true, response);
              } else callback(false, response);
            }
          };
          xhr.send(dataStr);
        }
      } ]);
      return HttpUtil;
    }();
    exports.HttpUtil = HttpUtil;
    HttpUtil.TimeOut = 200;
    cc._RF.pop();
  }, {} ],
  Index: [ function(require, module, exports) {
    "use strict";
    cc._RF.push(module, "a8f68/HAZhO24qrzUB+Dxd8", "Index");
    "use strict";
    var _require = require("./Bus"), Bus = _require.Bus;
    var _require2 = require("./Common"), Common = _require2.Common;
    var CmdDto = require("./dto/CmdDto");
    var User = require("./entity/User");
    var _require3 = require("./util/AndroidUtil"), AndroidUtil = _require3.AndroidUtil;
    var http = require("./util/http");
    cc.Class({
      extends: cc.Component,
      properties: {
        wxSubContextView: cc.Node,
        onePagePrefab: cc.Prefab,
        startbtn: cc.Node,
        showbanksbtn: cc.Node
      },
      onLoad: function onLoad() {
        cc.log("index.js onLoad");
        this.initUserInfoButton();
        this.startbtn.active = true;
        this.wxSubContextView.active = false;
        this.AnimationON();
        cc.log("window", window);
        Bus.putCurUser(window);
      },
      AnimationON: function AnimationON() {
        var ring = cc.find("Canvas/BaseView/showrankbtn/Ring");
        var duration = 4;
        ring.runAction(cc.repeatForever(cc.sequence(cc.scaleTo(duration / 2, 3, 3), cc.scaleTo(duration / 2, 1, 1))));
        ring.runAction(cc.repeatForever(cc.sequence(cc.fadeIn(duration / 2), cc.fadeOut(duration / 2))));
      },
      startGame: function startGame() {
        this.wxSubContextView.active = false;
        "undefined" !== typeof wx && wx.getOpenDataContext().postMessage({
          message: "clear"
        });
        cc.director.loadScene("MainView");
      },
      initUserInfoButton: function initUserInfoButton() {
        var _this = this;
        if ("undefined" === typeof wx) return;
        window.wx.getSetting({
          success: function success(res) {
            if (res.authSetting["scope.userInfo"]) {
              console.log("\u7528\u6237\u5df2\u6388\u6743");
              _this.startbtn.active = true;
            } else {
              console.log("\u7528\u6237\u672a\u6388\u6743");
              var systemInfo = wx.getSystemInfoSync();
              var width = systemInfo.windowWidth;
              var height = systemInfo.windowHeight;
              var button = wx.createUserInfoButton({
                type: "text",
                text: "\u70b9\u51fb\u6388\u6743",
                style: {
                  left: 115,
                  top: 550,
                  width: 150,
                  height: 50,
                  lineHeight: 50,
                  backgroundColor: "#00B26A",
                  color: "#FFFFFF\xa0",
                  textAlign: "center",
                  fontSize: 20,
                  borderRadius: 5
                }
              });
              button.onTap(function(res) {
                if (res.userInfo) {
                  console.log("\u6388\u6743\u6210\u529f\uff01");
                  _this.startbtn.active = true;
                } else console.log("\u6388\u6743\u5931\u8d25\uff01");
                button.hide();
                button.destroy();
              });
            }
          }
        });
      },
      showRanks: function showRanks() {
        if ("undefined" === typeof wx) return;
        if (this.wxSubContextView.active) {
          this.wxSubContextView.active = false;
          wx.getOpenDataContext().postMessage({
            message: "clear"
          });
        } else {
          this.wxSubContextView.active = true;
          var score = -1;
          wx.getOpenDataContext().postMessage({
            message: score
          });
        }
      },
      start: function start() {}
    });
    cc._RF.pop();
  }, {
    "./Bus": "Bus",
    "./Common": "Common",
    "./dto/CmdDto": "CmdDto",
    "./entity/User": "User",
    "./util/AndroidUtil": "AndroidUtil",
    "./util/http": "http"
  } ],
  RubishRotate: [ function(require, module, exports) {
    "use strict";
    cc._RF.push(module, "d06acJMb4hF6rYOjwXlNc4N", "RubishRotate");
    "use strict";
    cc.Class({
      extends: cc.Component,
      properties: {},
      onLoad: function onLoad() {
        cc.log("rubishRotate.js onLoad");
        var rotateDuration = Math.floor(8 + 4 * Math.random());
        var rotateDestination = Math.random() > .5 ? 1 : -1;
        this.node.runAction(cc.repeatForever(cc.rotateBy(rotateDuration, 360 * rotateDestination)));
      },
      start: function start() {}
    });
    cc._RF.pop();
  }, {} ],
  Rubish: [ function(require, module, exports) {
    "use strict";
    cc._RF.push(module, "7df3bjmNEZHY5Cdb9ZycfdQ", "Rubish");
    "use strict";
    cc.Class({
      extends: cc.Component,
      properties: {}
    });
    cc._RF.pop();
  }, {} ],
  User: [ function(require, module, exports) {
    "use strict";
    cc._RF.push(module, "81062/4VLpLG5UEnUtN/OwR", "User");
    "use strict";
    var User = {
      createNew: function createNew() {
        var user = {
          achievementId: null,
          address: null,
          avatarUrl: null,
          checkInDays: null,
          cityId: null,
          id: null,
          nickname: null,
          password: null,
          phone: null,
          pointCnt: null,
          score: null,
          stageId: null,
          username: null
        };
        return user;
      }
    };
    module.exports = User;
    cc._RF.pop();
  }, {} ],
  alert: [ function(require, module, exports) {
    "use strict";
    cc._RF.push(module, "52910u6uFVEP6vz4bXXA1Uu", "alert");
    "use strict";
    cc.Class({
      extends: cc.Component,
      properties: {
        rubish_sprite: cc.Sprite,
        mytip: cc.Label
      },
      onLoad: function onLoad() {},
      okFunion: function okFunion() {
        this.node.active = false;
        console.log(cc.find("Canvas/BaseView"));
        gameComponent = cc.find("Canvas/BaseView").getComponent("Game");
        cc.log("gameComponent");
        cc.log(gameComponent);
        cc.find("Canvas/BaseView").getComponent("Game").showRanks();
        cc.find("Canvas/BaseView").getComponent("Game").showrestartbtn();
      },
      setTip: function setTip(str) {
        this.mytip.string = str;
      },
      start: function start() {}
    });
    cc._RF.pop();
  }, {} ],
  game_scene: [ function(require, module, exports) {
    "use strict";
    cc._RF.push(module, "fe32fAjFSlDwq/yjMPk4l8a", "game_scene");
    "use strict";
    var http = require("util/http");
    cc.Class({
      extends: cc.Component,
      properties: {},
      onLoad: function onLoad() {},
      on_get_click: function on_get_click() {
        http.get("http://127.0.0.1:6080", "/get", "uname=blake&phone=123456789", function(err, ret) {
          if (err) {
            console.log(err);
            return;
          }
          console.log(ret);
        });
      },
      on_upload_click: function on_upload_click() {
        var path = jsb.fileUtils.getWritablePath();
        var fileData = jsb.fileUtils.getDataFromFile(path + "logo.jpg");
        http.post("http://127.0.0.1:6080", "/upload", "name=upload.jpg", fileData, function(err, ret) {
          if (err) {
            console.log(err);
            return;
          }
          console.log(ret);
        });
      },
      on_download_bin_click: function on_download_bin_click() {
        http.download("http://127.0.0.1:6080", "/download.jpg", null, function(err, data) {
          var path = jsb.fileUtils.getWritablePath() + "/download.jpg";
          jsb.fileUtils.writeDataToFile(data, path);
        });
      }
    });
    cc._RF.pop();
  }, {
    "util/http": void 0
  } ],
  http: [ function(require, module, exports) {
    "use strict";
    cc._RF.push(module, "6fc96rz4u1NFJwjq/IoPpZ6", "http");
    "use strict";
    var http = {
      get: function get(url, path, params, callback) {
        var xhr = cc.loader.getXMLHttpRequest();
        xhr.timeout = 5e3;
        var requestURL = url + path;
        params && (requestURL = requestURL + "?" + params);
        xhr.open("GET", requestURL, true);
        cc.sys.isNative && xhr.setRequestHeader("Accept-Encoding", "gzip,deflate", "text/html;charset=UTF-8");
        xhr.onreadystatechange = function() {
          if (4 === xhr.readyState && xhr.status >= 200 && xhr.status < 300) {
            console.log("http res(" + xhr.responseText.length + "):" + xhr.responseText);
            try {
              var ret = xhr.responseText;
              null !== callback && callback(null, ret);
            } catch (e) {
              console.log("err:" + e);
              callback(e, null);
            } finally {
              cc.vv && cc.vv.wc;
            }
          }
        };
        cc.vv && cc.vv.wc;
        xhr.send();
        return xhr;
      },
      post: function post(url, path, params, body, callback) {
        var xhr = cc.loader.getXMLHttpRequest();
        xhr.timeout = 5e3;
        var requestURL = url + path;
        params && (requestURL = requestURL + "?" + params);
        xhr.open("POST", requestURL, true);
        cc.sys.isNative && xhr.setRequestHeader("Accept-Encoding", "gzip,deflate", "text/html;charset=UTF-8");
        body && xhr.setRequestHeader("Content-Type", "application/json; charset=utf-8");
        xhr.setRequestHeader("dataType", "json");
        xhr.onreadystatechange = function() {
          if (4 === xhr.readyState && xhr.status >= 200 && xhr.status < 300) try {
            var ret = xhr.responseText;
            null !== callback && callback(null, ret);
          } catch (e) {
            console.log("err:" + e);
            callback(e, null);
          } finally {
            cc.vv && cc.vv.wc;
          }
        };
        cc.vv && cc.vv.wc;
        if (body) {
          var bodyStr = JSON.stringify(body);
          xhr.send(bodyStr);
        }
        return xhr;
      },
      download: function download(url, path, params, callback) {
        var xhr = cc.loader.getXMLHttpRequest();
        xhr.timeout = 5e3;
        var requestURL = url + path;
        params && (requestURL = requestURL + "?" + params);
        xhr.responseType = "arraybuffer";
        xhr.open("GET", requestURL, true);
        cc.sys.isNative && xhr.setRequestHeader("Accept-Encoding", "gzip,deflate", "text/html;charset=UTF-8");
        xhr.onreadystatechange = function() {
          if (4 === xhr.readyState && xhr.status >= 200 && xhr.status < 300) {
            var buffer = xhr.response;
            var data = new Uint8Array(buffer);
            callback(null, data);
          }
        };
        cc.vv && cc.vv.wc;
        xhr.send();
        return xhr;
      }
    };
    module.exports = http;
    cc._RF.pop();
  }, {} ],
  "use_v2.1-2.2.1_cc.Toggle_event": [ function(require, module, exports) {
    "use strict";
    cc._RF.push(module, "25b9d5ZV/dH8LfxdM0wNDp/", "use_v2.1-2.2.1_cc.Toggle_event");
    "use strict";
    cc.Toggle && (cc.Toggle._triggerEventInScript_isChecked = true);
    cc._RF.pop();
  }, {} ]
}, {}, [ "Bus", "Common", "Game", "HTTPUtil", "HTTPUtilTs", "Index", "Rubish", "RubishRotate", "alert", "CmdDto", "User", "game_scene", "AndroidUtil", "http", "use_v2.1-2.2.1_cc.Toggle_event" ]);